@layout("/backend/common/_container.html"){
<#Layout>
<#Layout_Left title='组织机构'>
<div class="dhcc-hisui-toolbar">
	<div class="dhcc-hisui-toolbar-seach">
		<input type="text" id="seachKey" value="" class="hisui-searchbox" />
	</div>
	<div class="dhcc-hisui-toolbar-btn">
		<a onclick="Dept.ztree.getObject().expandAll(true)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-add" plain="true">展开全部</a>
		<a onclick="Dept.ztree.getObject().expandAll(false)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-unuse" plain="true">折叠全部</a>
	</div>
</div>
<ul id="deptTree" class="ztree"></ul>
</#Layout_Left>

<#Layout_Center title='部门列表'>
<div class="dhcc-con dhcc-con-boder">
	<div class="dhcc-con-left">
		<form method='post' id="downForm" name="downForm" action="${backendPath}/dept/export">
			<#InputCon id="condition" name="部门名称" />
			<#Button name="查询" icon="icon-w-find" clickFun="Dept.search()"/>
		</form>
	</div>
</div>
<div id="DeptTableToolbar">
	<div class="alert alert-danger hidden" role="alert" id="tips"></div>
	@if(shiro.hasPermission("dept:add")){
	<#Button name="新增" icon="icon-add" plain="true" clickFun="Dept.add()"/>
	@}
	@if(shiro.hasPermission("dept:update")){
	<!-- <#Button name="修改" icon="icon-write-order" plain="true" clickFun="Dept.edit()"/> -->
	@}
	@if(shiro.hasPermission("dept:delete")){
	<!-- <#Button name="删除" icon="icon-cancel" plain="true" clickFun="Dept.del()"/> -->
	@}
	<#Button name="导出" plain="true" icon="icon-export" clickFun="Dept.expDepts()"/>
	<#Button name="导入" plain="true" icon="icon-import" clickFun="Dept.impDepts()"/>
	<#Button name="下载模板" plain="true" icon="icon-unload-cloud" clickFun="Dept.template()"/>
	@if(shiro.hasPermission("dept:add")){
	<#Button name="同步数据" icon="icon-write-order" plain="true" clickFun="Dept.sync()"/>
	@}
</div>
<#Table id="DeptTable"/>
</#Layout_Center>
</#Layout>
<script src="${ctxPath}/static/backend/system/dept/dept.js"></script>
@}
